<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			uni.getStorage({
			    key: 'token',
			    success: (token)=> {
			        // console.log(res);
					if(token.data==undefined){
						uni.reLaunch({
							url:'pages/login/login'
						})
					}
			    },
				fail:(token)=>{
					console.log('未登录')
					uni.reLaunch({
						url:'pages/login/login'
					})
				}
			});
			uni.getStorage({
			    key: 'user',
			    success: res=> {
			    },
				fail:(e)=> {
					console.log('未登录')
					uni.reLaunch({
						url:'pages/login/login'
					})
				}
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
